home *** CD-ROM | disk | FTP | other *** search
PiXCL source | 1996-07-28 | 1.6 KB | 75 lines |
- Initialize:
- WinGetActive(Win$)
- UseCoordinates(PIXEL)
- UseBackGround(TRANSPARENT,192,192,192)
- DrawBackGround
- WaitInput(100) {let NT and 95 catch up}
- InfoMenu(REMOVE)
- WinLocate(Win$,100,100,400,320,Res){300x220}
- Title$ = "Icons built into PiXCL"
- WinTitle(Win$, Title$)
- DirGet(SourceDir$)
-
-
- SetMenu("&File",IGNORE,
- "&Print Source",PrintSource,
- "E&xit!",Leave,
- ENDPOPUP,
- "&Show Icons",Show_Icons,
- ENDPOPUP,
- "&About",About,
- ENDPOPUP)
-
- Wait_for_Input:
- WaitInput()
-
-
- Leave:
- End
-
-
- PrintSource:
- PXLsource$ = SourceDir$ + "\shoicons.pxl"
- Cmd$ = "write /p " + PXLsource$
- Run(Cmd$)
- Goto Wait_for_Input
-
- Show_Icons:
- DrawIcon(5,5,0,0,ICON01)
- DrawIcon(40,5,0,0,ICON02)
- DrawIcon(75,5,0,0,ICON03)
- DrawIcon(110,5,0,0,ICON04)
- DrawIcon(145,5,0,0,ICON05)
- DrawIcon(180,5,0,0,ICON06)
-
- DrawIcon(5,40,0,0,ICON07)
- DrawIcon(40,40,0,0,ICON08)
- DrawIcon(75,40,0,0,ICON09)
- DrawIcon(110,40,0,0,ICON10)
- DrawIcon(145,40,0,0,ICON11)
- DrawIcon(180,40,0,0,ICON12)
-
- DrawIcon(5,75,0,0,ICON13)
- DrawIcon(40,75,0,0,ICON14)
- DrawIcon(75,75,0,0,ICON15)
- DrawIcon(110,75,0,0,ICON16)
- DrawIcon(145,75,0,0,ICON17)
-
- DrawIcon(5,120,0,0,INFORMATION)
- DrawIcon(40,120,0,0,EXCLAMATION)
- DrawIcon(75,120,0,0,QUESTION)
- DrawIcon(110,120,0,0,STOP)
-
- Goto Wait_for_Input
-
- About:
- AboutUser("About PiXCL Icons",
- "Sample Windows 95 program, created with the PiXCL 4.0 toolkit",
- "This program shows the seventeen embedded icons
- available in PiXCL, as well as the four system
- icons used with message boxes. Icons can be editted
- and replaced as required in PiXCL Runtimes.")
-
- Goto Wait_for_Input
-
-